package com.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.project.bean.GradeBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface IGradeMapper extends BaseMapper<GradeBean> {
    /**
     * 按照角色id数组查询权限集合，并去除重复的权限
     * @param roleArray 角色ID数组
     * @return 权限集合
     */
    public List<GradeBean> findByRole(@Param("roleArray") int [] roleArray);
}
